package com.atguigu.ssyx.activity.mapper;

import com.atguigu.ssyx.model.activity.ActivityInfo;
import com.atguigu.ssyx.model.activity.ActivityRule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author Windows
* @description 针对表【activity_info(活动表)】的数据库操作Mapper
* @createDate 2023-11-15 11:31:28
* @Entity com.atguigu.ssyx.activity.ActivityInfo
*/
@Mapper
public interface ActivityInfoMapper extends BaseMapper<ActivityInfo> {

    /**
     * 查询存在的id
     * @param skuIdList
     * @return
     */
    List<Long> selectExistSkuIdList(List<Long> skuIdList);

    /**
     * 查询活动规则
     * @param skuId
     * @return
     */
    List<ActivityRule> selectActivityRuleList(Long skuId);
}




